<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title></title>
    [#include "/admin/include/admin_static.htm"]
    [#import "/admin/include/admin_pagination.ftl" as p/]
    <script type="text/javascript">
        $(function() {
            $("#query").click( function() {
                $("#searchForm").attr("action","${path}/admin/account_log/list.aspx").submit();
            });

            $("#export").click(  function() {
                $("#searchForm").attr("action","${path}/admin/account_log/exportlist.aspx").submit();
            });
        });
    </script>
</head>
<body>
<div class="main_admin_content">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>资金使用记录</legend>
    </fieldset>
<form id="searchForm" method="post"
      action="${path}/admin/account_log/list.aspx">
<table class="search_table_div">
<tr>
    <td class="column">用户ID：</td>
    <td><input type="text"
               onkeyup="value=value.replace(/[^\d]/g,'')" name="userId"
               value="${userId }" /></td>
    <td class="column">用户名：</td>
    <td><input type="text" name="userName" value="${userName }" /></td>
    <td class="column">资金记录类型：</td>
<td colspan="7">
[@u.select listKey="dict_value"  headerKey="" headerValue="全部类型" listValue="dict_lab" headerButtom="false" list=DictionaryUtils.getDictListNid('account_type')
name="account_type" value="${(account_type)!''}" /]
</td>
    <td class="column">日期：</td>
    <td><input type="text" onclick="WdatePicker();"
               value="${begin_date }" name="begin_date" class="short"
               readonly="readonly" /> <i>至</i> <input type="text"
                                                      onclick="WdatePicker();" value="${end_date }" name="end_date"
                                                      class="short" readonly="readonly" /></td>
</tr>
    <tr>

        <th colspan="100" class="btn_td">
            <input id="export" type="button" class="layui-btn" style="float:left;width: 100px; heigth: 30px; line-height: 30px" value="导出">
            <input id="query"
                                                type="button" class="layui-btn" value="查询" /> <input
                onclick="resent();" type="button" class="layui-btn"
                value="清空" /></th>
    </tr>
</table>
</form>
    <table class="layui-table">
        <colgroup>
            <col width="50">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">

        </colgroup>

        <thead>
        <tr>
            <th>用户ID</th>
            <th>用户名称</th>
            <th>记录编号</th>
            <th>记录类型</th>
            <th>账户总额</th>
            <th>操作金额</th>
            <th>可用余额</th>
            <th>冻结金额</th>
            <th>待收金额</th>
            <th>记录时间</th>
            <th>记录备注</th>
        </tr>
        </thead>
        [#list logs as log]

            <tr>
                <td>${log.user_id}</td>
                <td>
                ${log.userName }</td>
                <td>${log.id }</td>
                <td>${log.logName }</td>
                <td>￥${(log.total+log.collection)!0}</td>
                <td>￥${log.money}</td>
                <td>￥${log.balance}</td>
                <td>￥${log.freezing_amont}</td>
                <td>￥${log.collection}</td>
                <td>
                       ${p2p_date_format(log.addtime ,"yyyy-MM-dd HH:mm:ss")}
                </td>
                <td>${log.remark}</td>
            </tr>
        [/#list]

    </table>
    [@p.pager pager = page parameterMap={"userName":"${userName}","borrowType":"${borrowType }","userId":"${userId }","account_type":"${account_type }","begin_date":"${begin_date }","end_date":"${end_date }"}   url = "${path}/admin/account_log/list.aspx"/]

</div>
</body>
</html>